package com.eshop.modules.monitor.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.sql.Timestamp;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

@TableName("visits")
public class Visits implements Serializable
{
    @TableId
    private Long id;
    private String date;
    private Long pvCounts;
    private Long ipCounts;
    @TableField(fill = FieldFill.INSERT)
    private Timestamp createTime;
    private String weekDay;
    
    public Long getId() {
        return this.id;
    }
    
    public String getDate() {
        return this.date;
    }
    
    public Long getPvCounts() {
        return this.pvCounts;
    }
    
    public Long getIpCounts() {
        return this.ipCounts;
    }
    
    public Timestamp getCreateTime() {
        return this.createTime;
    }
    
    public String getWeekDay() {
        return this.weekDay;
    }
    
    public void setId(final Long id) {
        this.id = id;
    }
    
    public void setDate(final String date) {
        this.date = date;
    }
    
    public void setPvCounts(final Long pvCounts) {
        this.pvCounts = pvCounts;
    }
    
    public void setIpCounts(final Long ipCounts) {
        this.ipCounts = ipCounts;
    }
    
    public void setCreateTime(final Timestamp createTime) {
        this.createTime = createTime;
    }
    
    public void setWeekDay(final String weekDay) {
        this.weekDay = weekDay;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof Visits)) {
            return false;
        }
        final Visits other = (Visits)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$id = this.getId();
        final Object other$id = other.getId();
        Label_0065: {
            if (this$id == null) {
                if (other$id == null) {
                    break Label_0065;
                }
            }
            else if (this$id.equals(other$id)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$pvCounts = this.getPvCounts();
        final Object other$pvCounts = other.getPvCounts();
        Label_0102: {
            if (this$pvCounts == null) {
                if (other$pvCounts == null) {
                    break Label_0102;
                }
            }
            else if (this$pvCounts.equals(other$pvCounts)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$ipCounts = this.getIpCounts();
        final Object other$ipCounts = other.getIpCounts();
        Label_0139: {
            if (this$ipCounts == null) {
                if (other$ipCounts == null) {
                    break Label_0139;
                }
            }
            else if (this$ipCounts.equals(other$ipCounts)) {
                break Label_0139;
            }
            return false;
        }
        final Object this$date = this.getDate();
        final Object other$date = other.getDate();
        Label_0176: {
            if (this$date == null) {
                if (other$date == null) {
                    break Label_0176;
                }
            }
            else if (this$date.equals(other$date)) {
                break Label_0176;
            }
            return false;
        }
        final Object this$createTime = this.getCreateTime();
        final Object other$createTime = other.getCreateTime();
        Label_0213: {
            if (this$createTime == null) {
                if (other$createTime == null) {
                    break Label_0213;
                }
            }
            else if (this$createTime.equals(other$createTime)) {
                break Label_0213;
            }
            return false;
        }
        final Object this$weekDay = this.getWeekDay();
        final Object other$weekDay = other.getWeekDay();
        if (this$weekDay == null) {
            if (other$weekDay == null) {
                return true;
            }
        }
        else if (this$weekDay.equals(other$weekDay)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof Visits;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $id = this.getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        final Object $pvCounts = this.getPvCounts();
        result = result * 59 + (($pvCounts == null) ? 43 : $pvCounts.hashCode());
        final Object $ipCounts = this.getIpCounts();
        result = result * 59 + (($ipCounts == null) ? 43 : $ipCounts.hashCode());
        final Object $date = this.getDate();
        result = result * 59 + (($date == null) ? 43 : $date.hashCode());
        final Object $createTime = this.getCreateTime();
        result = result * 59 + (($createTime == null) ? 43 : $createTime.hashCode());
        final Object $weekDay = this.getWeekDay();
        result = result * 59 + (($weekDay == null) ? 43 : $weekDay.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "Visits(id=" + this.getId() + ", date=" + this.getDate() + ", pvCounts=" + this.getPvCounts() + ", ipCounts=" + this.getIpCounts() + ", createTime=" + this.getCreateTime() + ", weekDay=" + this.getWeekDay() + ")";
    }
}
